home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / S3D_2E1.exe / Shout3d_runtime / codebase / models / fractionRemapperTest.s3d < prev    next >
Text File  |  2000-11-03  |  3KB  |  90 lines

  1. Background {
  2.     color 0 0 0
  3. }
  4. DEF world-TIMER TimeSensor {
  5.     loop TRUE
  6.     cycleInterval 3.333
  7. }
  8. DEF worldTime-REMAPPER FractionRemapper {
  9.     timeScale 110
  10.     startKey 10
  11.     endKey 110
  12. }
  13. ROUTE world-TIMER.fraction_changed TO worldTime-REMAPPER.inFraction
  14. DEF Box01 Transform {
  15.     translation -25.74 0 0
  16.     children [
  17.         Shape {
  18.             appearance [
  19.                 DEF ORANGE MultiAppearance {
  20.                     material Material {
  21.                         diffuseColor 0.9608 0.502 0.1961
  22.                         specularColor 0.6213 0.4987 0.1707
  23.                         shininess 0.25
  24.                         transparency 0
  25.                     }
  26.                 }
  27.             ]
  28.             geometry DEF Box01-MESH MultiMesh {
  29.                 coord DEF Box01-COORD Coordinate {
  30.                     point [
  31.                         -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  32.                     ]
  33.                 }
  34.                 coordIndex [
  35.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  36.                     2 0 4 -1 4 6 2 -1
  37.                 ]
  38.                 smoothingIndex [
  39.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  40.                 ]
  41.                 appearanceIndex [
  42.                     1 1 0 0 4 4 3 3 5 5 2 2
  43.                 ]
  44.                 textureMappings [
  45.                 ]
  46.             }
  47.         }
  48.     ]
  49. }
  50. DEF Camera01 Viewpoint{
  51.     position -93.86 101.9 109.4
  52.     orientation 0.7114 0.677 0.1885 -0.7463
  53.     fieldOfView 0.7854
  54.     fovMapping HORIZONTAL
  55.     description "Camera01"
  56. }
  57.         DEF Camera01-POS-INTERP PositionInterpolator {
  58.             timeScale 110
  59.             key [
  60.                 10 20 30 40 50 60 70 80 90 100 110
  61.             ]
  62.             keyValue [
  63.                 -93.86 101.9 109.4 -148.3 101.9 109.4 -76.87 101.9 109.4
  64.                 38.01 101.9 109.4 114.1 101.9 109.4 137.6 101.9 109.4 149.7 101.9 109.4 150.5 101.9 109.4
  65.                 139.8 101.9 109.4 117.8 101.9 109.4 84.41 101.9 109.4
  66.             ]
  67.         }
  68.         ROUTE worldTime-REMAPPER.outFraction TO Camera01-POS-INTERP.set_fraction
  69.         ROUTE Camera01-POS-INTERP.value_changed TO Camera01.set_position
  70.         DEF Camera01-ROT-INTERP OrientationInterpolator {
  71.             timeScale 110
  72.             key [
  73.                 10 20 30 40 50 60 70 80 90 100 110
  74.             ]
  75.             keyValue [
  76.                 0.7114 0.677 0.1885 -0.7463 0.5051 0.8395 0.2003 -0.8827
  77.                 0.7894 0.5896 0.1709 -0.7037 0.8731 -0.4669 -0.1402 -0.6625 0.5492 -0.811 -0.2016 -0.8501
  78.                 0.4759 -0.8569 -0.1984 -0.9056 0.4433 -0.8749 -0.1951 -0.9323 0.4414 -0.8759 -0.1949 -0.9339
  79.                 0.4696 -0.8604 -0.1978 -0.9106 0.5365 -0.8195 -0.2015 -0.8593 0.6628 -0.7228 -0.1955 -0.775
  80.             ]
  81.         }
  82.         ROUTE worldTime-REMAPPER.outFraction TO Camera01-ROT-INTERP.set_fraction
  83.         ROUTE Camera01-ROT-INTERP.value_changed TO Camera01.set_orientation
  84. DEF Camera01.Target Transform {
  85.     translation -10.3 0 -37.17
  86.     children [
  87.     ]
  88. }
  89.  
  90.